<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserdetailsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('userdetails', function (Blueprint $table) {
            $table->integer('uid')->comment('用户id');
            $table->string('nick')->comment('用户昵称');
            $table->string('img')->comment('用户头像');
            $table->string('imghg')->comment('皇冠');
            $table->text('desc')->comment('用户详细资料');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('userdetails');
    }
}
